import Index from "../components/index/Index";
import About from "../components/about/About";
import Cees from "../components/ceshi/ceshi";
import Tree from "../components/zujian/tree";
import Table from "../components/table/table";
import NineG from "../components/nineG/nineG"
import UseSt from "../components/zujian/useSt"
import Grandpa from "../components/fzbox/grandpa"
import Form from "../components/zujian/form"
import Buzhou from "../components/zujian/buzhou"
import Zmd from "../components/zmd"
import Canvas from "../components/canvas"
import SelectTree from '../components/zujian/selectTree';
import Jiequ from '../components/jiequ/jiequ';
import Video from '../components/video';
import Qeihuan from '../components/qeihuan/qeihuan';
import Newvideo from '../components/HLS';
import Tongbudh from '../components/tongbudh/tongbudh';
import Tog from '../components/tog/tog';
import NewIndex from '../components/newEcharts/newIndex';
import Choujiang from '../components/choujiang/choujiang';
import VideoCall from '../components/VideoCall/VideoCall';

import { Navigate } from 'react-router-dom';


import { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons';

const routes = [
    { path: '/', element: <Navigate to='/Index' replace /> },
    {
        path: '/Index',
        element: <Index />,
        name: '首页',
        icon: <MailOutlined />,
        children: [
            {
                path: 'About',
                element: <About />,
                name: '地图',
                icon: <AppstoreOutlined />
            },
            {
                path: 'Ceshi',
                element: <Cees />,
                name: '小页面',
                icon: <SettingOutlined />
            },
        ]
    },
    {
        path: '/Tree',
        element: <Tree />,
        name: 'Tree',
        icon: <MailOutlined />,
    },
    {
        path: '/Table',
        element: <Table />,
        name: 'Table',
        icon: <MailOutlined />,
    },
    {
        path: '/NineG',
        element: <NineG />,
        name: 'NineG',
        icon: <MailOutlined />,
    },
    {
        path: '/UseSt',
        element: <UseSt />,
        name: 'UseSt',
        icon: <MailOutlined />,
        children: [
            {
                path: 'Form',
                element: <Form />,
                name: 'Form',
                icon: <AppstoreOutlined />,
                meta: {
                    auth: true // 需要验证
                }
            },
            {
                path: 'Buzhou',
                element: <Buzhou />,
                name: 'Buzhou',
                icon: <MailOutlined />
            },
            {
                path: 'SelectTree',
                element: <SelectTree />,
                name: 'SelectTree',
                icon: <MailOutlined />
            },
            {
                path: 'Qeihuan',
                element: <Qeihuan />,
                name: 'Qeihuan',
                icon: <MailOutlined />
            },
        ]
    },
    {
        path: '/Grandpa',
        element: <Grandpa />,
        name: 'Grandpa',
        icon: <MailOutlined />,
    },
    {
        path: '/Zmd',
        element: <Zmd />,
        name: 'Zmd',
        icon: <MailOutlined />
    },
    {
        path: '/Canvas',
        element: <Canvas />,
        name: 'Canvas',
        icon: <MailOutlined />
    },

    {
        path: '/Jiequ',
        element: <Jiequ />,
        name: 'Jiequ',
        icon: <MailOutlined />
    },
    {
        path: '/Video',
        element: <Video />,
        name: 'Video',
        icon: <MailOutlined />
    },
    {
        path: '/Newvideo',
        element: <Newvideo />,
        name: 'Newvideo',
        icon: <MailOutlined />
    },
    {
        path: '/Tongbudh',
        element: <Tongbudh />,
        name: 'Tongbudh',
        icon: <MailOutlined />
    },
    {
        path: '/Tog',
        element: <Tog />,
        name: 'Tog',
        icon: <MailOutlined />
    },
    {
        path: '/NewIndex',
        element: <NewIndex />,
        name: 'NewIndex',
        icon: <MailOutlined />
    },
    {
        path: '/Choujiang',
        element: <Choujiang />,
        name: 'Choujiang',
        icon: <MailOutlined />
    },
    {
        path: '/VideoCall',
        element: <VideoCall />,
        name: 'VideoCall',
        icon: <MailOutlined />
    }
];

export default routes;